package com.zq.product.dao.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zq.product.dao.entity.ProductSku;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class ProductExcelVo {

	@ExcelProperty(value = "id" ,index = 0)
	private Long id;
	@ExcelProperty(value = "创建时间" ,index = 1)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	@ExcelProperty(value = "更新时间" ,index = 2)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	@ExcelProperty(value = "是否删除" ,index = 3)
	private Integer isDeleted;


	@ExcelProperty(value = "商品名称" ,index = 4)
	private String name;					// 商品名称

	@ExcelProperty(value = "商品编码" ,index = 5)
	private Long brandId;					// 品牌ID

	@ExcelProperty(value = "商品价格" ,index = 6)
	private Long category1Id;				// 一级分类id

	@ExcelProperty(value = "商品价格" ,index = 7)
	private Long category2Id;				// 二级分类id

	@ExcelProperty(value = "商品价格" ,index = 8)
	private Long category3Id;				// 三级分类id

	@ExcelProperty(value = "商品价格" ,index = 9)
	private String unitName;				// 计量单位

	@ExcelProperty(value = "商品价格" ,index = 10)
	private String sliderUrls;				// 轮播图

	@ExcelProperty(value = "商品规格值json串" ,index = 11)
	private String specValue;				// 商品规格值json串

	@ExcelProperty(value = "商品状态" ,index = 12)
	private Integer status;					// 线上状态：0-初始值，1-上架，-1-自主下架

	@ExcelProperty(value = "审核状态" ,index = 13)
	private Integer auditStatus;			// 审核状态

	@ExcelProperty(value = "审核信息" ,index = 14)
	private String auditMessage;			// 审核信息

	// 扩展的属性，用来封装响应的数据
	@ExcelProperty(value = "品牌名称" ,index = 15)
	private String brandName;				// 品牌

	@ExcelProperty(value = "一级分类名称" ,index = 16)
	private String category1Name;			// 一级分类

	@ExcelProperty(value = "二级分类名称" ,index = 17)
	private String category2Name;			// 二级分类

	@ExcelProperty(value = "三级分类名称" ,index = 18)
	private String category3Name;			// 三级分类

//	@ExcelProperty(value = "sku列表集合" ,index = 19)
//	private List<ProductSku> productSkuList;		// sku列表集合
//
//
//	@ExcelProperty(value = "图片详情列表" ,index = 20)
//	private String detailsImageUrls;				// 图片详情列表

}